package com.wjw.cloud.service.impl;

import com.wjw.cloud.mapper.SysDictMapper;
import com.wjw.cloud.model.SysDict;
import com.wjw.cloud.model.SysDictExample;
import com.wjw.cloud.service.SysDictService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * SysDictService实现类
 */
@Service
public class SysDictServiceImpl implements SysDictService {
    private static final Logger LOGGER = LoggerFactory.getLogger(SysDictServiceImpl.class);

    @Autowired
    private SysDictMapper sysDictMappers;

    @Override
    public List<SysDict> getInfoByType(String type) {
        SysDictExample example = new SysDictExample();
        SysDictExample.Criteria criteria = example.createCriteria();
        criteria.andTypeEqualTo(type);
        return sysDictMappers.selectByExample(example);
    }


}
